import { statusTextColor } from "app/constants/statusColor"

export const eventCellStyle = (event) => {
  const backgroundColor = event.color
  const borderColor = statusTextColor[event?.status]
  const borderWidth = 1
  const color = statusTextColor[event?.status]
  const fontSize = 5
  const borderRadius = 5
  const justifyContent = "space-between"

  return {
    elevation: 4, // Android only
    borderWidth,
    borderColor,
    backgroundColor,
    fontSize,
    color,
    borderRadius,
    justifyContent,
  }
}

export const eventDayCellStyle = (event) => {
  const backgroundColor = event.color
  const borderColor = statusTextColor[event?.status]
  const borderWidth = 1
  const color = statusTextColor[event?.status]
  const fontSize = 5
  const borderLeftWidth = 10
  const borderLeftColor = statusTextColor[event?.status]
  const borderRadius = 5
  const justifyContent = "space-between"

  return {
    elevation: 4, // Android only
    borderWidth,
    borderColor,
    backgroundColor,
    fontSize,
    color,
    borderLeftWidth,
    borderLeftColor,
    borderRadius,
    justifyContent,
  }
}
